//ȡģʽ ˮƽɨ  λǰ
/*
 * xͼƬʾx
 * yͼƬʾy
 * wʾͼƬĿ
 * hʾͼƬĸ߶
 * pʾͼƬȡģʼַ
*/
void Gui_Drawbmp16(uint16_t x,uint16_t y,uint16_t w, uint16_t h, const unsigned char *p) //ʾͼƬ
{ 
	int32_t i; 
	uint8_t picH,picL; 
	LCD_SetWindows(x,y,x+w-1,y+h-1);//
  	for(i=0;i<w*h;i++)
	{	
	 	picH=*(p+i*2);	//ݵλǰ
		picL=*(p+i*2+1);				
		LCD_WriteData_16Bit(picH<<8|picL);  						
	}	
	LCD_SetWindows(0,0,lcddev.width-1,lcddev.height-1);//ָʾΪȫ
}

ԣ10,10Ϊ㣬ʾ40*40 QQͼƬ԰·ú

Gui_Drawbmp16(10,10,40,40,gImage_qq_logo);

gImage_qq_logoΪQQͼƬȡģ顣